<!--#include("./header.html")-->

<form action="./" method="post" onsubmit="return procFilter(this, insert_config)" id="cafeSetup">
    <h3 class="xeAdmin">{$lang->cmd_setup}</h3>
    <table cellspacing="0" class="rowTable">
    <tbody>
        <tr>
            <th scope="row"><div>{$lang->cafe_main_mid}</div></th>
            <td>
                <input type="input" name="cafe_main_mid" value="{$homepage_config->cafe_main_mid}" class="inputTypeText" />
                <p>{$lang->about_cafe_main_mid}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->browser_title}</div></th>
            <td>
                <input type="input" name="browser_title" value="{$homepage_config->browser_title}" class="inputTypeText" />
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->cafe_main_layout}</div></th>
            <td>
                <select name="layout_srl">
                    <!--@foreach($main_layout_list as $key => $val)-->
                    <option value="{$val->layout_srl}" <!--@if($homepage_config->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
                    <!--@end-->
                </select>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->skin}</div></th>
            <td>
                <select name="skin">
                    <!--@foreach($skins as $key => $val)-->
                    <option value="{$key}" <!--@if($homepage_config->skin== $key)-->selected="selected"<!--@end-->>{$val->title}</option>
                    <!--@end-->
                </select>
                <!--@if($homepage_config->module_srl)-->
                <a href="{getUrl('act','dispHomepageAdminSkinSetup','module_srl',$homepage_config->module_srl)}" class="button"><span>{$lang->cmd_setup}</span></a>
                <!--@end-->
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->cafe_creation_type}</div></th>
            <td>
                <label for="chkCafeVid"><input type="radio" id="chkCafeVid" name="access_type" value="vid" onclick="toggleCafeAccessType('vid');" <!--@if($homepage_config->access_type=='vid')-->checked="checked"<!--@end--> /> {$lang->access_vid}</label>
                <label for="chkCafeDomain"><input type="radio" id="chkCafeDomain" name="access_type" value="domain" onclick="toggleCafeAccessType('domain');" <!--@if($homepage_config->access_type!='vid')-->checked="checked"<!--@end--> /> {$lang->access_domain}</label>
                <div id="accessCafeDomain" style="display:<!--@if($homepage_config->access_type=='vid')-->none<!--@end-->; margin-top:10px;">
                    URL : <input type="text" name="default_domain" value="{$homepage_config->default_domain}" class="inputTypeText w200" />
                </div>
                <p>{$lang->about_cafe_creation_type}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->cafe_creation_privilege}</div></th>
            <td>
                <!--@foreach($groups as $key => $val)-->
                <input type="checkbox" name="creation_group" <!--@if(in_array($val->group_srl, $homepage_config->creation_group))-->checked="checked"<!--@end--> value="{$val->group_srl}" id="creation_group_{$key}"/><label for="creation_group_{$key}">{$val->title}</label>
                <!--@end-->
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->default_layout}</div></th>
            <td>
                <select name="default_layout">
                    <option value="faceoff" <!--@if($homepage_config->default_layout=='faceoff')-->selected="selected"<!--@end--> >faceoff</option>
                    <optgroup label="{$lang->downloaded_list}">
                    <!--@foreach($layout_list as $key => $val)-->
                    <option value="{$val->layout}" <!--@if($homepage_config->default_layout== $val->layout)-->selected="selected"<!--@end-->> <!--@if($val->title)-->{$val->title} ({$val->layout})<!--@else-->{$val->layout}<!--@end--></option>
                <!--@end-->
                    </optgroup>
                </select>
                <p>{$lang->about_default_layout}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->enable_change_layout}</div></th>
            <td>
                <input type="checkbox" name="enable_change_layout" value="Y" <!--@if($homepage_config->enable_change_layout=='Y')-->checked="checked"<!--@end-->/>
                <p>{$lang->about_change_layout}</p>
            </td>
        </tr>
        <tr>
            <th scope="row" rowspan="{count($service_modules)}"><div>{$lang->allow_service}</div></th>
            {@$_idx = 0}
        <!--@foreach($service_modules as $k => $v)-->
            <!--@if($v->category == 'service' && $v->default_index_act)-->
            <!--@if($_idx>0)--><tr><!--@end-->
            <td class="nowrap">
                {$v->title} : <input type="text" name="allow_service_{$v->module}" value="{$homepage_config->allow_service[$v->module]}" class="inputTypeText w80" />
            </td>
            <!--@end-->
            {@$_idx++}
            </tr>
        <!--@end-->
        <tr>
            <td>
                <p>{$lang->about_allow_service}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>RSS</div></th>
            <td>
                <input type="checkbox" name="use_rss" value="Y" <!--@if($homepage_config->use_rss=='Y')-->checked="checked"<!--@end-->/>
            </td>
        </tr>
        <tr class="row2">
            <td class="button"><span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span></div></td>
        </tr>
    </tbody>
    </table>
</form>
